package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.mapper.UsersMapper;
import tech.aistar.model.pojo.Users;
import tech.aistar.service.IUsersService;

import java.util.List;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/4/28 1:55 下午
 */
@Service
@Transactional
public class UserServiceImpl implements IUsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Users> findAll() {
        return usersMapper.findAll();
    }
}
